#@datagrid()
#define content_header()
<h1>
    提现管理
    <small>withdraw tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/withdraw/">财务</a></li>
    <li class="active">提现管理</li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">
        <!--选项卡-->
        #set(tabid="tabpublic_list")
        #include("_withdraw_navtab.html")
        <div class="row">
            <div class="col-md-5">
                <button type="button" class="btn btn-sm btn-info navbar-btn xsui-btn-multi-edit-dialog" data-url="/withdraw/getRecord/varkey" data-xsui-option='{confirmMessage:"您确定要领取吗?"}'>领取</button>
                <button type="button" class="btn btn-sm btn-success navbar-btn xsui-btn-refresh">刷新</button>
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right" action="/withdraw/1">
                    <div class="form-group">
                        <input type="text" name="word" class="form-control input-sm" placeholder="关键词..." title="会员ID" value="#(search_gword??)">
                    </div>
                    <button type="submit" class="btn btn-sm btn-default">查询</button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>选项</th>
                    <th>#</th>
                    <th>用户ID</th>
                    <th>会员名</th>
                    <th>手机号</th>
                    <th>账户余额</th>
                    <th>冻结金额</th>
                    <th>提现金额</th>
                    <th>付款通道</th>
                    <th>收款账号</th>
                    <th>持卡人姓名</th>
                    <th>开户银行</th>
                    <th>提现说明</th>
                    <th>申请时间</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.id)">
                    <td><input type="checkbox" value="#(x.id)" /></td>
                    <td class="xsui-rowid"></td>
                    <td>#(x.user_id)</td>
                    <td>#(x.nickname)</td>
                    <td>#(x.mobile)</td>
                    <td>#(x.blance)</td>
                    <td>#(x.frozen_blance)</td>
                    <td>#(x.amount)</td>
                    <td>#(x.pay_channel)</td>
                    <td>#(x.account)</td>
                    <td>#(x.holder)</td>
                    <td>#(x.bank_name)</td>
                    <td>#(x.remark)</td>
                    <td>#(x.createTimeText)</td>
                </tr>
                #end
            </tbody>
        </table>
        <!--分页条-->
		<table>
			<tr>
				<td>#@paginate(listPage.pageNumber, listPage.totalPage,
					"/withdraw/")</td>
				<td><div class="xsui-datagrid-info">
						共<span class="text-danger">#(listPage.getTotalRow())</span>条
					</div></td>
			</tr>
		</table>
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end
#define body_foot()
<script type="text/javascript">
$("#get").click(function(){
	if($(".fn-sel-box:checked").length == 0){
		alert("请选择申请记录");
		return;
	}
	if(!confirm("确定领取任务?")) {
		return;
	}
});	
</script>
#end
